<?php
	/**
	 * @package AmpleHarvest
	 */
	use ampleharvest\code\usermanager\tables\cTABLE_Groups;
use ampleharvest\code\usermanager\tables;
	
	/**
	 * @brief This file is used to Create all needed tables for AmpleHarvest.
	 *
	 * - Revision History
	 *  - 0.1
	 * 	 - <b>Date</b>: 24 MAR 2011
	 * 	 - <b>Author</b>: Randy Blancett
	 * 	  - Initial Version
	 *
	 * @author Randy Blancett
	 * @version 0.1
	 * @ingroup code script classes
	 */
	
	require_once dirname(dirname(__FILE__)) . "/classes/cAmpleHarvest_DB.php";
	require_once dirname(dirname(__FILE__)) . "/classes/User_Manager/Tables/cTABLE_Applications.php";
	require_once dirname(dirname(__FILE__)) . "/classes/User_Manager/Tables/cTABLE_Actions.php";
	require_once dirname(dirname(__FILE__)) . "/classes/User_Manager/Tables/cTABLE_Groups.php";
	require_once dirname(dirname(__FILE__)) . "/classes/User_Manager/Tables/cTABLE_Keybox.php";

	$obj_AmpleHarvestDB = new cAmpleHarvest_DB();
	$obj_AmpleHarvestDB->create_Database();

	// Add information to the User manager for the Ample harvest Application
	
	$obj_TABLE_Applications = new tables\cTABLE_Applications();
	$obj_TABLE_Applications->insert_DefaultData();
	
	$obj_TABLE_Groups = new tables\cTABLE_Groups();
	$obj_TABLE_Groups->insert_DefaultData();

	$obj_TABLE_Actions = new tables\cTABLE_Actions();
	$obj_TABLE_Actions->insert_DefaultData();

	$obj_TABLE_Keybox = new tables\cTABLE_Keybox();
	$obj_TABLE_Keybox->insert_DefaultData();
?>